import 'package:flutter/material.dart';
import 'package:flutter_keep_book/app/index/item_type/item_type_list_page.dart';
import 'package:flutter_keep_book/app/route/route_name.dart';

import '../index/save/item_save_page.dart';


class RouteUtils {
  static Future gotoItemType(BuildContext context) {
    return  Navigator.of(context).push(MaterialPageRoute(
      settings: const RouteSettings(name: RouteName.itemType),
      builder: (context) => ItemTypeListPage(),
    ));
  }

  static Future gotoItemSave(BuildContext context) {
    return  Navigator.of(context).push(MaterialPageRoute(
      settings: const RouteSettings(name: RouteName.itemSavePage),
      builder: (context) => ItemSavePage(),
    ));
  }
}
